var Company = {
	register: function() {
		ajax({
		  url: baseURL + "company/insert",
		  cache: false,
		  type: "POST",
		  data: $('#register_form').serialize(),
		  async: false,
		  dataType: 'script'
		});
		
		return false;
	},
	
	updateCompany: function() {
		ajax({
		  url: baseURL + "company/update",
		  cache: false,
		  type: "POST",
		  data: $('#register_form').serialize(),
		  async: false,
		  dataType: 'script'
		});
		
		return false;
	},
	
	getCategory: function() {
		ajax({
			  url: baseURL + "ajax/get_company_category",
			  cache: false,
			  type: "POST",
			  async: false,
			  dataType: 'html',
			  success: function(data) {
				  $('#institutionalCategory').html(data);
			  }
			});
	},
	
	getSize: function() {
		ajax({
			  url: baseURL + "ajax/get_company_size",
			  cache: false,
			  type: "POST",
			  async: false,
			  dataType: 'html',
			  success: function(data) {
				  $('#institutionalSize').html(data);
			  }
			});
	},
	
	getMessageGrid: function() {
		ajax({
			  url: baseURL + "company/message/search",
			  cache: false,
			  type: "POST",
			  data: 'offset=' + ($('#message_offset') ? $('#message_offset').val() : '0'),
			  async: false,
			  dataType: 'html',
			  success: function(data) {
				  $('#gridMessage').html(data);
			  }
			});
	}
};